package com.cskaoyan.service.vx;

import com.cskaoyan.bean.bo.vxBo.CartAddBo;
import com.cskaoyan.bean.bo.vxBo.CartCheckedBo;
import com.cskaoyan.bean.bo.vxBo.CartDeleteBo;
import com.cskaoyan.bean.bo.vxBo.CartUpdateBo;
import com.cskaoyan.bean.po.wxPo.CartgoodsPo;
import com.cskaoyan.bean.po.wxPo.MarketUser;
import com.cskaoyan.bean.vo.WxTempVO;
import com.cskaoyan.bean.vo.vxVo.cartVo.*;

import java.util.List;

/**
 * @author: YDP

 */
public interface CartService {


    Integer selectgoodscount(MarketUser marketUser);

    void insertINcart(CartAddBo cartBo,MarketUser marketUser);

    Integer selectOneGoodsCount(CartAddBo cartBo,MarketUser marketUser);

    List<Cartgoods> showgoods(MarketUser marketUser);

    CartTotal showCartTotal(MarketUser marketUser);

    void updateCheckedCart(CartCheckedBo cartCheckedBo,List<Integer> productIDs,MarketUser marketUser);

    void updateNumber(CartAddBo cartBo, MarketUser marketUser);

    Integer selectAdded(CartAddBo cartBo,MarketUser marketUser);

    void updateDeleteOneCart(List<Integer> productIDs,MarketUser marketUser);

    void updateAddNumber(CartUpdateBo cartUpdateBo, MarketUser marketUser);

    CheckedAddress selectAddress(MarketUser marketUser);

    CheckedAddress queryAddressByAddressId(Integer addressId);

    List<CheckedGoodsList> showCheckgoods(Integer cartId);

    WxTempVO findDiscoutBycouponId(Integer totalPrice, Integer userId);



    Integer findOrderTotalprice(MarketUser marketUser);

    Integer selectGoodsCountByUserId(Integer id);

    Integer selectCartTotalPrice(Integer cartId);

}
